package com.aier.common.common;

import javax.annotation.Resource;

import org.springframework.beans.factory.InitializingBean;

import com.aier.src.service.ISysDataService;

public class SysStart implements InitializingBean {

    @Resource(name = "sysDataService")
    private ISysDataService sysDataService;
    
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("系统启动,数据处理中...");
        sysDataService.updateSysStart();
        
        System.out.println("系统数据加载结束");
    }

    public void setSysDataService(ISysDataService sysDataService) {
        this.sysDataService = sysDataService;
    }

}
